package com.ruoyi.finance.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 付款单详情对象 finer_payment_detail
 *
 * @author lvql
 * @date 2024-11-08
 */
public class PaymentDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String paymentCode;

    /** 源单编号 */
    @Excel(name = "源单编号")
    private String sourceCode;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalAmount;

    /** 账户Id */
    @Excel(name = "账户Id")
    private Integer accountId;

    /** 结算方式 */
    @Excel(name = "结算方式")
    private String paymentMethod;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setPaymentCode(String paymentCode)
    {
        this.paymentCode = paymentCode;
    }

    public String getPaymentCode()
    {
        return paymentCode;
    }
    public void setSourceCode(String sourceCode)
    {
        this.sourceCode = sourceCode;
    }

    public String getSourceCode()
    {
        return sourceCode;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setAccountId(Integer accountId)
    {
        this.accountId = accountId;
    }

    public Integer getAccountId()
    {
        return accountId;
    }
    public void setPaymentMethod(String paymentMethod)
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod()
    {
        return paymentMethod;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("paymentCode", getPaymentCode())
                .append("sourceCode", getSourceCode())
                .append("totalAmount", getTotalAmount())
                .append("accountId", getAccountId())
                .append("paymentMethod", getPaymentMethod())
                .toString();
    }
}
